std::rand
From Cppreference
| Defined in header <cstdlib>
| ||
| int rand();
| ||
Returns a pseudo-random integral value between 0 and RAND_MAX.
srand() should be called before any calls to rand() to initialize the random number generator to random value.
Contents |
[edit] Parameters
(none)
[edit] Return value
pseudo-random integral value between 0 and RAND_MAX.
[edit] Example
| This section is incomplete |
[edit] See also
| initializes pseudo-random number generator (function) | |